import { RouteRecordRaw } from 'vue-router';

const commonRouter: Array<RouteRecordRaw> = [
    {
        path: '/index',
        redirect: '/'
    },
    {
        path: '/home',
        redirect: '/'
    },
    {
        path: "/",
        name: "Home",
        component: () => import('@/views/Home.vue'),
        meta: {
            showMenu: true,
            title: '首页'
        }
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/Login.vue')
    },
]

export default commonRouter;